home *** CD-ROM | disk | FTP | other *** search
/ Tux Racer / Tux Racer.iso / program files / Sunspire Studios / Tux Racer / courses / arctic / trophy.tcl < prev   
Encoding:
Text File  |  2001-09-09  |  1.2 KB  |  39 lines

  1. objcreate {s_model_obj} {:models:trophy} \
  2.     {-filename} {trophy_arctic.obj.strip}
  3.  
  4. objcreate s_texture :textures:object:trophy \
  5.     -repeatable 1 -filename trophy_arctic.png
  6.  
  7. objcreate {s_object3d} {:objects:trophy} \
  8.     {-drawable_model} {:models:trophy} \
  9.     {-texture} {:textures:object:trophy} \
  10.     {-envmap_texture} {:textures:trophy:trophy_env} \
  11.     {-cubemap_texture} {:textures:trophy:trophy_cube} \
  12.     {-envmap_alpha} {0.5}
  13.  
  14. objcreate {s_container} {:anim:course}
  15.  
  16. objcreate {s_anim_curve} {:anim:course:trophy_spin} \
  17.     {-keyframes} {{( 0.0000, 0.0000, 36.0000, 36.0000 ) } {( 10.0000, 360.0000, 36.0000, 36.0000 ) }} \
  18.     {-loop} {1}
  19.  
  20.  
  21. objcreate {s_sgnode} {:trophy:trans} \
  22.     {-position} {0 -1.9 -5} \
  23.     {-rotation} {20.0 0.0 0.0}
  24.  
  25. objcreate {s_sganim} {:trophy:trans:anim} \
  26.     {-bound_animations} {{( :anim:course:trophy_spin , y_rotation , 1 )}} \
  27.     {-position} {0.0 0.0 0.0}
  28.  
  29. objcreate {s_object3dinst} {:trophy:trans:anim:obj} \
  30.     {-object3d} {:objects:trophy}
  31.  
  32. objcreate {s_container} {:actions:course}
  33.  
  34. objcreate {s_action_anim} {:actions:course:trophy} \
  35.     {-root_anim} {:anim:course:trophy_spin} \
  36.     {-root_object} {:trophy:trans:anim}
  37.  
  38. objcall :actions:course:trophy start
  39.